package com.group.Service.Impl;

import com.group.DAO.ParkingDAO;
import com.group.Enity.Parking;
import com.group.Service.ParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ParkingServiceImp implements ParkingService {

    @Autowired
    private ParkingDAO parkingDAO;

    public List<Parking> getParks(String numbers){
        return parkingDAO.getParks(numbers);
    }

    @Override
    public void add(Parking parking) {
        parkingDAO.add(parking);
    }

    @Override
    public void update(Parking parking) {
        parkingDAO.update(parking);
    }

    @Override
    public void delete(int id) {
        parkingDAO.delete(id);
    }

}
